package com.nwpu.am.pojo.dto;

import com.nwpu.am.annotation.KnowledgeType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * KnowledgeDTO
 *
 * @author Roy
 * @version 1.0
 * {@code @date} 2024/6/6
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("知识数据传输对象")
public class KnowledgeDTO implements Serializable {
    @KnowledgeType
    @NotNull
    @ApiModelProperty("类型为（0：事实 1：修理方法）")
    private Short type;
    @NotEmpty
    private String description;
}
